import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;

public class exercise_1 {
	public static void main(String[] args) throws IOException {
		URL url ;
		try {
			 url = new URL("http://hotels.ctrip.com/hotel/shanghai2#ctm_ref=hod_hp_sb_lst");
			 int i ;
			while( (i = url.openConnection().getInputStream().read()) != -1) {
				System.out.print((char)i+"");
			}
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}
}
